import { createApp } from 'vue'
import App from './App.vue'
import './style.css'
import router from './router' //引入路由
import store from './store'  //引入状态管理


const app = createApp(App);

app.use(router);
app.use(store);

//添加全局自定义指令
app.directive('yellow', {
  mounted(el) {
    el.style.color = 'yellow';
  }
});

app.mount('#app');